package cn.u313.entry;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "t_lingqu")
public class UserLingQuEntry {
    @Id
    private int id;
    private String qq;
    private int type ;//0 yb 1 yingb 2 exp
    private String Qgroup;
    private int state;//zhuang tai 0 1
    private double n;
    private String msg;//liyou
    private String stratTime;
    private String endTime;

    public String getQuTime() {
        return quTime;
    }

    public void setQuTime(String quTime) {
        this.quTime = quTime;
    }

    private String quTime
            ;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getQgroup() {
        return Qgroup;
    }

    public String getStratTime() {
        return stratTime;
    }

    public void setStratTime(String stratTime) {
        this.stratTime = stratTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public void setQgroup(String qgroup) {
        Qgroup = qgroup;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public double getN() {
        return n;
    }

    public void setN(double n) {
        this.n = n;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String toString(int i) {
        return "\t\t"+a()+":"+n+" 【"+id+"】\n";
    }
    public String a(){
        return type==0?"悦币奖励":type==1?"嘤币奖励":"嘤鱼成长";
    }
    public String a(int a){
        return type==0?(int)n+"悦币":type==1?n+"嘤币":(int)n+"exp";
    }
    public String ok(){
        return "成功领取 "+a(0) +  "\n礼包详情："+ getMsg();
    }
}
